 var t = n =0, count;

                  $(document).ready(function(){

                      count=$("#lunbo_list a").length;

                      $("#lunbo_list a:not(:first-child)").hide();

                      $("#lunbo_info").html($("#lunbo_list a:first-child").find("img").attr('alt'));

                      $("#lunbo_info").click(function(){window.open($("#lunbo_list a:first-child").attr('href'), "_blank")});

                      $("#lunbo li").click(function() {

                          var i = $(this).text() -1;//获取Li元素内的值，即1，2，3，4

                          n = i;

                          if (i >= count) return;

                          $("#lunbo_info").html($("#lunbo_list a").eq(i).find("img").attr('alt'));

                          $("#lunbo_info").unbind().click(function(){window.open($("#lunbo_list a").eq(i).attr('href'), "_blank")})

                          $("#lunbo_list a").filter(":visible").fadeOut(500).parent().children().eq(i).fadeIn(1000);

                          document.getElementById("lunbo").style.background="";

                          $(this).toggleClass("on");

                          $(this).siblings().removeAttr("class");

                      });

                      t = setInterval("showAuto()", 4000);

                      $("#lunbo").hover(function(){clearInterval(t)}, function(){t = setInterval("showAuto()", 4000);});

                  })



                  function showAuto()

                  {

                      n = n >=(count -1) ?0 : ++n;

                      $("#lunbo li").eq(n).trigger('click');

                  }